<%@ page contentType="text/html;charset=utf-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ include file="admin_header.jsp"%>
<%@ include file="admin_container.jsp"%>
<%@ include file="admin_nav.jsp" %>
<c:if test="${article == null}">
<h1>添加新煎蛋热文</h1>
<form action="<c:url value="/administrator/article.htm?method=add"/>" method="post">
</c:if>
<c:if test="${article != null}">
<form action="<c:url value="/administrator/article.htm?method=edit"/>" method="post">
<h1>编辑煎蛋热文</h1>
<input name="articleID" type="hidden" value="${article.articleID }"/>
</c:if>

<table>
	<tr><td><label for="title">标题:</label></td><td><input type="text" name="title" value="${article.title}"/></td></tr>
	<tr><td><label for="description">描述:</label></td><td><textarea  cols="30" rows="5" name="description">${article.description}</textarea></td></tr>
	<tr><td><label for="imagePath">图片名称:</label></td><td><input type="text" name="imagePath" value="${article.imagePath}"/></td></tr>
	<tr><td><label for="link">链接:</label></td><td><input type="text" name="link" value="${article.link}"/></td></tr>
	<tr><td></td><td><input type="submit" value="保存文章信息"/></td></tr>
</table>
</form>
<%@ include file="admin_footer.jsp"%>
